/**
   A bank account has a balance that can be changed by 
   deposits and withdrawals.
*/
public class BankAccountProblem
{  
   /**
      Constructs a bank account with a zero balance
   */
   public BankAccount()
   {   
      balance = 0;
   }

   

   /**
      Deposits money into the bank account.
      @param amount the amount to deposit
   */
   public void deposit(double amount)
   {  
      double newBalance = balance + amount;
      balance = newBalance;
   }

   
  
     
   public double getBalance()
   {   
      return balance;
   }

   private double balance;
}
